import request from '@/utils/request'
let PositionApi = {
    /*获取职业列表*/
    getNestedData(data, errorback) {
        return request._get('/shop/career.career/getNestedData', data, errorback);
    },
    /*获取职业列表*/
    getCareerList(data, errorback) {
        return request._get('/shop/career.career/index', data, errorback);
    },
    /*新增职业*/
    careerStoreAdd(data, errorback) {
        return request._post('/shop/career.career/store', data, errorback);
    },
    /*编辑职业*/
    careerStoreUpdate(data, errorback) {
        return request._post('/shop/career.career/update', data, errorback);
    },
    /*获取级别列表*/
    getCareerLevel(data, errorback) {
        return request._get('/shop/career.CareerLevel/index', data, errorback);
    },
    /*新增级别*/
    careerLevelStore(data, errorback) {
        return request._post('/shop/career.CareerLevel/store', data, errorback);
    },
    /*编辑级别*/
    careerLevelUpdate(data, errorback) {
        return request._post('/shop/career.CareerLevel/update', data, errorback);
    },
    /*获取职业方向列表*/
    getCareerDirection(data, errorback) {
        return request._get('/shop/career.CareerDirection/index', data, errorback);
    },
    /*新增职业方向*/
    careerDirectionStore(data, errorback) {
        return request._post('/shop/career.CareerDirection/store', data, errorback);
    },
    /*编辑职业方向*/
    careerDirectionUpdate(data, errorback) {
        return request._post('/shop/career.CareerDirection/update', data, errorback);
    },
    /*获取鉴定站列表*/
    getCareerAppraisal(data, errorback) {
        return request._get('/shop/career.CareerAppraisal/index', data, errorback);
    },
    /*新增鉴定站*/
    careerAppraisalStore(data, errorback) {
        return request._post('/shop/career.CareerAppraisal/store', data, errorback);
    },
    /*编辑鉴定站*/
    careerAppraisalUpdate(data, errorback) {
        return request._post('/shop/career.CareerAppraisal/update', data, errorback);
    },
    /*获取报名地址列表*/
    getCareerAddress(data, errorback) {
        return request._get('/shop/career.CareerAddress/index', data, errorback);
    },
    /*新增报名地址*/
    careerAddressStore(data, errorback) {
        return request._post('/shop/career.CareerAddress/store', data, errorback);
    },
    /*编辑报名地址*/
    careerAddressUpdate(data, errorback) {
        return request._post('/shop/career.CareerAddress/update', data, errorback);
    },
}
export default PositionApi;